/**
 *@描述: 应用系统接入管理
 *@author:heli
 */
import {
    getAppSysList_path,
    saveAppSys_path,
    getAppDetail_path,
    disableAppSys_path,
    onAppSys_path,
} from './path';

import {
    POST , GET , PATCH, DELETE,PUT
} from '@/plugins/axios';


//获取应用系统列表
export const getAppSysList = (data)=> {
    return GET(getAppSysList_path() , data);
};
//新增应用
export const saveAppSys = (data)=> {
    return POST(saveAppSys_path() , data, {'content-type' : "application/json"});
};
//更新应用
export const updateAppSys = (data)=> {
    return PATCH(saveAppSys_path() , data , {'content-type' : "application/json"});
};
//应用详情
export const getAppDetail = appId=> {
    return GET(getAppDetail_path(appId));
};
//停用应用
export const disableAppSys = appId=> {
    return DELETE(disableAppSys_path(appId));
};
//启用应用
export const onAppSys = appId=> {
    return GET(onAppSys_path(appId));
};
